package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 医生管理
 * </p>
 *
 * @author zr
 * @since 2020-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_doctor")
@ApiModel(value="Doctor对象", description="医生管理")
public class Doctor extends Model<Doctor> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医生ID")
    @TableId(value = "doctorID", type = IdType.AUTO)
    private Integer doctorID;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "头像")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "科室")
    @TableField("depart")
    private String depart;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "账户")
    @TableField("account")
    private String account;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "是否会诊专家 0 =是 1=不是")
    @TableField("Is_master")
    private Integer isMaster;

    @ApiModelProperty(value = "职称")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "值班状态 0= 未值班 1=值班")
    @TableField("on_duty_status")
    private Integer onDutyStatus;

    @ApiModelProperty(value = "专长")
    @TableField("special")
    private String special;

    @ApiModelProperty(value = "所属医院")
    @TableField("hospital")
    private String hospital;

    @ApiModelProperty(value = "上次登陆时间")
    @TableField("last_login")
    private LocalDateTime lastLogin;

    @ApiModelProperty(value = "登陆ip")
    @TableField("login_ip")
    private String loginIp;

    @ApiModelProperty(value = "角色1医生")
    @TableField("role")
    private Integer role;

    @ApiModelProperty(value = "权限")
    @TableField("author")
    private Integer author;

    @ApiModelProperty(value = "账户状态 0= 正常 1=冻结")
    @TableField("account_status")
    private Integer accountStatus;

    @ApiModelProperty(value = "年纪")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "性别 0=男 1=女 2=未知")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "状态 0= 正常 1= 停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "所在班组编号")
    @TableField("classId")
    private Integer classId;

    @ApiModelProperty(value = "是否进入班组 0=否 1=是")
    @TableField("class_status")
    private Integer classStatus;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;



    @Override
    protected Serializable pkVal() {
        return this.doctorID;
    }

}
